#contenido {
    display: flex;
    gap: 2rem;
    width: 100vw; 
    justify-content: center;
    margin-top: 2rem;
}

#catalogo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 0;
}
.producto {
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
    width: 300px; 
    height: 25rem;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border 0.5s ease-in-out;
    position: relative;
}


.imagen-contenedor {
    width: 100%;
    height: 150px; 
    display: flex;
    justify-content: center; 
    align-items: center;
    overflow: hidden;
    border-radius: 8px; 
}

.imagen-contenedor img {
    max-width: 80%; 
    max-height: 80%; 
    object-fit: contain; 
    transition: transform 0.3s ease-in-out;
}

.producto:hover {
    background-color: #f9f9f9;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
    border: 1px solid #000;
    transition: 0.5s ease-in;
}

.ref {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #FFD700;
    padding: 5px 10px;
    color: #333;
    font-weight: bold;
    border-radius: 4px;
    font-size: 0.9rem;
}

.producto img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.nombre {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 0.2rem;
}
.marca-linea{
    color: #7c7c7c;
    font-weight: 600;
}
.detalles {
    list-style-type: none;
    padding: 0;
    margin-bottom: 0.1rem;
    text-align: left;
    font-size: 0.85rem;
    color: #585858;
}

.detalles li {
    margin-bottom: 0.7rem;
}

.cantidad {
    width: 50px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.add-button {
    padding: 0.5rem;
    background-color: #FFD700;
    color: #333;
    border: none;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.add-button:hover {
    background-color: #e0c60f;
}
.producto.ocultar {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out;
    position: absolute;
    visibility: hidden;
}

.producto.mostrar {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.9s ease-in-out, transform 0.9s ease-in-out;
    position: relative;
    visibility: visible;
}
#contenedor-productos {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem; 
    justify-content: center; 
    padding: 0 0 2rem 18%;
    width: auto;
}
.paginacion button:disabled {
    background-color: #f0f0f0;
    color: #bbb;
    cursor: not-allowed;
}

.paginacion button:disabled:hover {
    background-color: #f0f0f0;
    color: #bbb;
}
.no-results {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
    height: 50vh; 
    width: 60vw;
    background-color: #f9f9f9;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin-top: 2rem;
    text-align: center;
}
.no-results p{
    margin-top: 16%;
}
.cantidad-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 0 10px;
    gap: 10px;
    width: fit-content;
    background-color: #f9f9f9;
    margin: 20px auto;
}

.boton-cantidad {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.boton-cantidad:hover {
    color: #555;
}

@media (max-width: 1024px) {
    #contenedor-productos {
        grid-template-columns: repeat(3, 1fr); 
        gap: 4rem; 
        padding: 2rem 0 2rem 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    #contenido {
        width: 100vw;
        display: flex;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    #contenedor-productos {
        grid-template-columns: repeat(1, 1fr);
        width: 100vw;
        margin: 0 auto;
        padding: 0;
        justify-content: center;
    }
    #catalogo {
        padding-left: 0;
        margin: 0 auto;
    }

}

@media (max-width: 480px) {
    #contenedor-productos {
        grid-template-columns: repeat(1, 1fr);
        width: 100vw;
        margin: 0 auto;
        padding: 0;
        margin-left: 14vw;

    }
    
}
.aviso-especificaciones {
    width: 100vw;
    background: #f4f3f3;
    color: #333;
    font-weight: bold;
    text-align: center;
    padding: 1.2rem 2vw;
    font-size: 0.9rem;
    margin: 0 auto 1.1rem auto;
    box-sizing: border-box;
    border-bottom: 2px solid #afafaf;
    border-top: 2px solid #313131;
    letter-spacing: 0.5px;
    box-shadow:rgba(0, 0, 0, 0.15) 0px 1px 2px 0px;
}

@media (max-width: 600px) {
    .aviso-especificaciones {
        font-size: 0.8rem;
        padding: 0.9rem 4vw;
    }
}


.sin_long {
    margin-bottom: 3.9rem;
}
.producto_3D {
    margin-bottom: 1.8rem;
}

.info-card-ultima {
    right: 37px;
    top: 25px;
}